package com.eascs.tdriskcloud.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eascs.admin.common.dao.BaseO2oDao;
import com.eascs.tdriskcloud.entity.TdHitsInformation;

@Repository
public class HitInfoParsDao extends BaseO2oDao {

	public TdHitsInformation queryHit(String id) {
		String sql = "SELECT * FROM td_hits_information t WHERE t.id = ?";
		return this.findEntity(sql, TdHitsInformation.class, id);
	}

	public List<TdHitsInformation> queryHitInfo(String tdId) {
		String sql = "SELECT * FROM td_hits_information t WHERE t.td_id = ?";
		return this.findEntitys(sql, TdHitsInformation.class, tdId);
	}
}
